package com.gulimall.member.controller;

import com.gulimall.common.utils.ServiceResponse;
import com.gulimall.member.api.dto.MemberInDTO;
import com.gulimall.member.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 会员
 *
 * @author aliuql
 * @email 17701057157@qq.com
 * @date 2021-11-15 14:30:28
 */
@RestController
@RequestMapping("/member/member")
public class MemberController {

    @Autowired
    private MemberService memberService;

    /**
     * 保存
     */
    @PostMapping("/save")
    public ServiceResponse<Void> save(@RequestBody MemberInDTO memberInDTO) {
        return memberService.save(memberInDTO);
    }
}
